list = [7, -8, 5, 4, 0, -2, -5]
list.sort(key=lambda x: x*-100 if x < 0 else x )
print(list)


s = 'asdf234GDSdsf23'  #排序:小写-大写-奇数-偶数
print("".join(sorted(s, key=lambda x: (x.isdigit(), x.isdigit() and int(x) % 2 == 0, x.isupper(), x.islower(),x))))


